﻿@model List<ZhongheCms.Models.GswTblMemberBase>
@{
	
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="row">
    <div class="col-xs-12 padding-0">
        <div class="widget-box">
            <div class=" widget-header widget-header-flat" style="padding-left: 0px">
               
                    <span class="btn btn-small btn-info no-border">
                        <i class="fa fa-check bigger-130"></i>&nbsp;<span class="bigger-110">会员审核</span><span class="bigger-110">
                           
                        </span>
                    </span>
                
                <div class="widget-toolbar">
                  
                </div>

            </div>
            <div class="widget-body">
                <div class="widget-main padding-2">

                    <table class="table table-striped table-bordered table-hover">
                        <tr>
                            <th class="center">
                                审核
                            </th>
                            <th>
                                注册日期
                            </th>
                            <th>会员类别</th>
                            <th>用户名</th>
                          
                            <th>状态</th>
                            <th class="center">
                                删除
                            </th>
                        </tr>
                        <tbody>
                            @foreach (var item in Model)
                            {

                                <tr>
                                    <td class="center">

                                        <a href="/Home/MemberAudit/@item.Id">
                                            <span class="btn btn-xs btn-info no-border">
                                                <i class="fa fa-check-square-o"></i>
                                            </span>
                                        </a>


                                    </td>



                                    <td>
                                        @item.RegDate.ToShortDateString()
                                    </td>
                                    <td>
                                        @item.MemberCate
                                    </td>
                                    <td>
                                        @item.MemberUserName

                                    </td>
                                 
                                    <td>
                                        @if (item.AuditFlag == 0)
                                        {
                                            <span>未审核</span>
                                        }
                                    
                                        @if (item.AuditFlag == 2)
                                        {
                                            <span>已拒绝</span>
                                        }


                                    </td>

                                    <td class="center">


                                        <a class="confirm" href="/Home/MemberDelete/@item.Id">
                                            <span class="btn btn-xs btn-danger no-border"><i class="fa fa-trash-o"></i></span>
                                        </a>


                                    </td>
                                </tr>

                            }
                        </tbody>
                    </table>

                </div>
             
            </div>
        </div>
    </div>
</div>
@section js
{

    <script src="/assets/js/date-time/bootstrap-datepicker.min.js"></script>
    <script src="/assets/js/date-time/bootstrap-datepicker.zh-CN.js"></script>
    <script src="/assets/js/bootbox.min.js"></script>
    <script type="text/javascript">
        jQuery(function ($) {
            //$('.datepick').datepicker({ autoclose: true, format: "yyyy-mm-dd", language: "zh-CN" });
           
            bootbox.setDefaults({ locale: "zh_CN" });
            $(".confirm").on(ace.click_event, function (e) {
                e.preventDefault();
                var link = $(this).attr("href");
                bootbox.confirm("确认删除此记录吗?", function (result) {
                    if (result) {
                        document.location.href = link;
                    }
                });
            });

        });
    </script>
}
